package com.rabbitmq.provider;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author luhui
 * @version 1.0
 * Email: luhui60@jd.com
 * date:2021/4/27 15:23
 * description：
 **/
@Component
public class MqConfig {

    @Bean
    public FanoutExchange fanoutExchange() {
        return new FanoutExchange("fanout-exchange");
    }
}
